package chapter21.concurrency;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class CacheThreadPool {
	public static void main(String[] args) {
		ExecutorService service=Executors.newCachedThreadPool();
		for(int i=0;i<5;i++){
			service.submit(new LiftOff());
		}
		service.shutdown();
	}
}
